<?php
header("Content-type: text/xml");

echo '<?xml version="1.0"?>'."\n";
?>
<CiscoIPPhoneText>
	<Title>Internode Usage</Title>
	<Text><?
		printf("Used: %.2f GB\n", $this->api->used/1000 );
		if(!$this->api->unlimited) {
			printf("Quota: %.2f GB\n", $this->api->quota/1000 );
			printf("Remaining: %.2f GB (%.2f %%)\n", $this->api->quota_remaining/1000, $this->api->quota_percentage );
			printf("Remaining per Day: %.2f MB\n", ($this->api->quota_remaining / $this->api->days_remaining) );
		}
?>
	</Text>
	<Prompt><?= $this->api->username ?></Prompt>
</CiscoIPPhoneText>